Document::DoFileIsAlreadyOpen

Section: ET++ method description (n)
Updated: automatically Fri Mar 15 14:13:05 1991
Index Return to Main Contents
 

NAME

Document::DoFileIsAlreadyOpen - instance method  

TEMPLATE

openFileOnceMore = bool DoFileIsAlreadyOpen(Document * anotherDoc, char * fileName)  

SPECIFIERS

public virtual  

DESCRIPTION

DoFileIsAlreadyOpen is called by the method Load when a file is to be loaded which has already been opened by anotherDoc. DoFileIsAlreadyOpen must tell now whether this document may also open the file.
The default implementation pops up an alert with a warning message, calls the method ShowDocument and returns FALSE. The method ShowDocument puts the main window of anotherDoc in front of all the other windows.
Override this method and return TRUE if it is allowed to open a file several times within an application.
See also the filebrowserII example application which allows to edit the same file in different windows concurrently. Method is rarely overridden.  

ARGUMENTS

Document * anotherDoc

the document which already has opened the file
char * fileName

the name of the file already opened by anotherDoc
 

RETURN ARGUMENT

bool openFileOnceMore

indicates whether this document may open the file, too
 

CATEGORIES

input/output, overrider interface

 

FIRST DEFINITION

class Document  

FILES

implementation:
Document.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FIRST DEFINITION
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:28 GMT, March 30, 2022